package cn.edu.sdyu.ie.crs.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.util.Date;

//@Schema(name = "维修记录信息")
@ApiModel("维修记录信息")
@Data
@Entity
public class MaintenanceRecord {

    //@Schema(name = "维修记录Id")
    @ApiModelProperty("维修记录Id")
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;
    @ApiModelProperty("申请人")
    private String classroomCode;  // 申请人
    @ApiModelProperty("设备ID")
    private Integer applicant;  // 设备ID
    @ApiModelProperty("故障描述")
    private String faultDescription;  // 故障描述
    @ApiModelProperty("申请时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date applicationTime;  // 申请时间
    @ApiModelProperty("维修人员")
    private String maintenancePeople;  // 维修人员
    @ApiModelProperty("维修结果")
    private String maintenanceResult;  // 维修结果
    @ApiModelProperty("状态")
    private Integer state;  // 状态
    @ApiModelProperty("用户名")
    private String username;  // 用户名
    @ApiModelProperty("创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createTime;  // 创建时间



}
